package com.wang.cloud.manage.domain.co;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;


/**
 * @author wangye
 * @date 2023/8/10 0010
 */
@Getter
@Setter
@ToString
@Schema(description = "更新站点角色状态")
public class UpdateStatusCo {

    @NotNull(message = "业务ID不能为空")
    @Schema(description = "业务ID")
    private Long id;

    @Schema(description = "状态（0正常 1停用）")
    @NotBlank(message = "状态不能为空")
    @Pattern(regexp = "^[01]$", message = "状态错误")
    private String status;
}
